package org.example.www.UVManager;

import java.rmi.RemoteException;

import fr.insatoulouse.uvmanager.grb.DataBase.Manager;

public class myImpl implements UVManager_PortType {

	Manager dbManager;
	public myImpl() {
		dbManager = new Manager();
		dbManager.createTables();
	}

	public int addUV(String name, String description, String ECTSCode, int CM,
			int TD, int TP, int BE, int controle, String inCharge)
	throws RemoteException {
		return dbManager.addUV(name, description, 4	, CM, TD, TP, BE, controle, inCharge);
	}

	public void deleteUV(int id) throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	

	public int getUVIdByName(String name) throws RemoteException {
		return 0;//dbManager. addUV(name, description, 1999, CM, TD, TP, BE, controle, inCharge);
	}

	public String validateAffection(String in) throws RemoteException {
		// TODO Auto-generated method stub
		return null;
	}

	public int addAssignment(int UVId, String teacher, int amount,
			LectureType type) throws RemoteException {
		// TODO Auto-generated method stub
		return 0;
	}
	
	public int addUV(String name, String description, int year, int CM, int TD,
			int TP, int BE, int controle, String inCharge)
			throws RemoteException {
		// TODO Auto-generated method stub
		return 0;
	}
	
	public void deleteAssignment(int id) throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	
	public Assignment getAssignment(int id) throws RemoteException {
		// TODO Auto-generated method stub
		return null;
	}

	public UV[] getPromo(int year) throws RemoteException {
		// TODO Auto-generated method stub
		return null;
	}
	
	public UV getUV(int id) throws RemoteException {
		// TODO Auto-generated method stub
		
		return null;
	}
	

	
	public int getUVId(String name) throws RemoteException {
		// TODO Auto-generated method stub
		return 0;
	}
	
	public void updateAssignment(int id, String teacher, int amount,
			LectureType type) throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	
	public void updateAssignmentStatus(int id, AssignmentStatus status)
			throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	
	public void updateUV(int id, String name, String description, int year,
			int CM, int TD, int TP, int BE, int controle, String inCharge)
			throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	
	public void updateUVStatus(int id, UVStatus status) throws RemoteException {
		// TODO Auto-generated method stub
		
	}
	
	
}
